#ifndef MENU_EXCEPTIONS_H
#define MENU_EXCEPTIONS_H

#include <string>

#include "aktazo_exceptions.h"

///exception subclass for handling Menu level exceptions

class Menu_exceptions : public Aktazo_exceptions
{
	private:
		std::string message;
		///message to display with what()

		std::string debug_info;
		///optional info for debugging: filename, line number etc.

	public:	
		Menu_exceptions() throw () : message("Menu hiba.")
		{
		}

		Menu_exceptions(const std::string &p_debug_info) throw() : message("Menu hiba: "),debug_info(p_debug_info)
		{
			message.append(debug_info);
		}

		~Menu_exceptions() throw()
		{
		}

		virtual const char* what() const throw()
		{
			return(message.c_str());
		}
};

#endif
